import { defHttp } from "@/utils/http";
export const processExpressionApi = {
	//流程表达式列表
	processExpressionPage: async (params?: any) => {
		return await defHttp.get({ url: "/bpm/process-expression/page", params });
	},
	//新增流程表达式
	processExpressionCreate: async (params?: any) => {
		return await defHttp.post({ url: "/bpm/process-expression/create", params });
	},
	//修改流程表达式
	processExpressionUpdate: async (params?: any) => {
		return await defHttp.put({ url: "/bpm/process-expression/update", params });
	},
	//删除流程表达式
	processExpressionDelete: async (params?: any) => {
		return await defHttp.delete({ url: `/bpm/process-expression/delete?id=${params.id}` });
	}
};
